package liuwanghui.service;

import liuwanghui.pojo.Result;
import liuwanghui.dto.request.ProductCreateDTO;
import liuwanghui.dto.request.ProductQueryDTO;
import liuwanghui.dto.request.ProductStatusDTO;
import liuwanghui.dto.request.ProductUpdateDTO;

public interface FarmerService {
    Result getProducts(ProductQueryDTO params);
    Result createProduct(ProductCreateDTO dto);
    Result updateProduct(Long id, ProductUpdateDTO dto);
    void deleteProduct(Long id);
    void updateProductStatus(Long id, ProductStatusDTO dto);
    Result getDashboardStats(String startDate, String endDate);
}